﻿#ifndef ___Class_Image
#define ___Class_Image
#include "GameLib/Framework.h"

class Image {
public:
	Image(const char* filename);
	~Image();
	int width() const;
	int height() const;
	const unsigned* data() const;
	static void readFile(char** buffer, int* size, const char* filename);
	static unsigned getUnsigned(const char* p);
	void drawCell(int x, int y, GameLib::Framework framework);
private:
	int mWidth;
	int mHeight;
	unsigned* mData;
};

#endif